]> dgit.raspbian.org Git - gnome-shell.git/commit
app-menu: Update clip on icon size changes
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Mar 2011 09:49:50 +0000 (11:49 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 25 Apr 2011 20:20:10 +0000 (22:20 +0200)
commitd97657b15140cba41e079aa41ca355a97f10eee8
tree40703d105344fceaa594dc56ba905786ca83defa
parent7e857dede302cbf3aa88a9a0a792f9337671eee6
app-menu: Update clip on icon size changes

To keep the app icon from overlapping the panel's (border-image)
border, a custom property for clipping the app menu icon's bottom
was introduced. But if the clip region is set before the initial
icon is set, the entire actor ends up clipped. Also due to the double
meaning of clutter_actor_get_height() (e.g. preferred height versus
allocated height), the clip region may end up too large and the icon
overlaps the panel's border-image.
Fix both problems by updating the clip region on size changes as
well, rather than on style changes only.

https://bugzilla.gnome.org/show_bug.cgi?id=644122
js/ui/panel.js